﻿function CheckUncheckAll(name, value) {
    var i; CheckBoxs = document.getElementsByName(name);

    for (i = 0; i < CheckBoxs.length; i++) {
        if (CheckBoxs[i].type == "checkbox") CheckBoxs[i].checked = value;
    }
}